Update Dynamic Category
PUT : http://<base_url>/digipay/v3/user/dynamic_category
This API used to Update Dynamic Category Data into the system
BODY PARAMS:-
Parameter | Type | Description | Value |
---|---|---|---|
id | String | Unique id assign to dynamic category retrive a dynamic category detail | 6a651c1c48a2baa5eee44c98430c |
name | String | Represents the name associated with an entity. For example, it could be the name of a product or a user | Sample Name |
category_key | String | This field holds a key or identifier for categorizing the entity. It's used to group similar items together, such as products in a specific category. | random_category |
display_order | Int | Indicates the order in which the entity should be displayed. It's an integer value that determines the position in a list or interface. | 3 |
type | Int | Represents the type or classification of the entity. It could denote different variations or classes within a broader category. | 2 |
is_default | Boolean | A boolean flag indicating whether the entity is set as the default option. For instance, it might signify a default setting for a user profile or product choice. | true/false |
no_of_doc_required | Int | Specifies the number of documents required or associated with the entity. This could be relevant for processes requiring documentation submission. | 5 |
user_type | Int | Represents the type of user associated with the entity. It could denote different roles or permissions levels in an application. | 2 |
transaction_pin | String | transaction of amount transfer to another account | 1234 |
user_type | Int | Interger type of user | 2 |
ir_country_id | String | Holds an identifier or code related to a specific country. This could be used to link the entity to a particular country. | IR12345 |
HEADERS:-
Parameter | Type | Description | Value |
---|---|---|---|
Authorization | String | It is a combination of type and token to authenticate user for the given token | Token duik7309njdlkhdauhknksadhjkas986876sd873j |
CompanyID | String | Company_id is a unique primary id, that is represent company detail | 76bc712200ca444fa334f9e55e5fd7a8 |
Request Body:-
Request Example
curl --request PUT \
--url http://192.168.1.102:8014/digipay/v3/user/dynamic_category \
--header 'Authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI2NWY0ZDI1MDliZmU0NTBmYTg4MTVhNTU5Njk3YmM0NyIsInJvbGVzIjpbIlJPTEVfQURNSU4iXSwiZXhwIjoxNjkzNTIxOTU1fQ.9oWwUzlFzmYB1ZOhaVamxKJH6DsMO8tFue2kbg2YyoI' \
--header 'CompanyID: 76bc712200ca444fa334f9e55e5fd7a8' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": "6a651c1c48a2baa5eee44c98430c",
"name": "Sample Name",
"category_key": "random_category",
"display_order": 3,
"type": 2,
"is_default": false,
"no_of_doc_required": 5,
"user_type": 2,
"ir_country_id": "IR12345"
}
'
Response:-
Response 200(OK)
{
"success": 1,
"error": [],
"data": {
"message": "USER_DYNAMIC_CATEGORY_DATA_UPDATED_SUCCESSFULLY"
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}
RESPONSES :-
Status Code | Description |
---|---|
200 | OK |
400 | Bad Request |
404 | Not Found |
500 | Internal Server Error |